byWrapping
Takes any error and turns it into a ScanFlowError.
-
A ScanFlowError is returned as-is, unwrapped.
-
A LicenseException is mapped into ScanFlowErrorCode.LICENSING.
-
IO errors related to missing inputs are mapped into ScanFlowErrorCode.CONFIGURATION.
-
All other errors are mapped to ScanFlowErrorCode.INTERNAL.